package com.video.service.system.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.video.entity.Model;
import com.video.mapper.ModelMapper;
import com.video.service.system.IModelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class ModelServiceImpl extends ServiceImpl<ModelMapper, Model> implements IModelService {

    @Autowired
    private ModelMapper modelMapper;

    @Override
    @Transactional(readOnly = true)
    public List<Model> queryAll() {
        return modelMapper.queryAll();
    }
}
